<?php
/**
 * Created by PhpStorm.
 * User: leo
 * Date: 2018/5/16
 * Time: 23:25
 */
include '../classes/logincheck.php';
include '../classes/conn.php';
$id=$_POST['id'];
$score=$_POST['score'];
if(islogin()!='teacher_login') {
    die('error');
}

$query="update submit set score='{$score}' where Id='{$id}'";
mysql_query($query);
echo "1";